﻿@using CaptchaMvc.HtmlHelpers
@model CodeCamp.Models.UserRegisterModel

@{
    ViewBag.Title = "Join";
}

<h2>Registering to present?</h2>
<h3>To register and start a presentation proposal submission</h3>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Fill in the fields below and click Register")
    <div>
        <fieldset>
            @Html.HiddenFor(m => m.SiteUserId)
            <div class="editor-label">
                @Html.LabelFor(m => m.FirstName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.FirstName)
                @Html.ValidationMessageFor(m => m.FirstName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.LastName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.LastName)
                @Html.ValidationMessageFor(m => m.LastName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

            <legend>Account Information</legend>
            <p>
                @Html.Captcha("Try another image", "Enter the characters you see in the captcha image above.", 6, "Is required field.")
            </p>
            <p>
                <input type="submit" value="Register" />
            </p>
        </fieldset>
    </div>
}
